package com.aaa.sso.feign;

import com.aaa.entity.User;
import com.aaa.sso.factory.MyUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: aaa-his-parent
 * @description:
 * @author: 闫克起
 * @create: 2023-12-07 11:32
 **/
@FeignClient(name="his-system",fallbackFactory = MyUserFallbackFactory.class)
public interface UserFeign {

    @GetMapping("/system/user/selectUserByPhone/{phone}")
    public User selectUserByPhone(@PathVariable String phone);
}
